<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2025/7/28
 * Time: 13:42
 */

namespace app\controller\sys;


use app\controller\Base;
use app\model\Config;

class Wxcard extends Base
{
    public function save(){
        $post = input('post.');
        $info = Config::where('key','wxcompany')->find();
        if (!empty($info->value))$info->save(['value' => json_encode($post)]);
        else Config::create(['key' => 'wxcompany','value' =>  json_encode($post)]);
        return $this->msg($info);
    }

    public function info(){

    }
}